package xyz.zdsoft.ask_for_leave_manage_module.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
public class StuLeaveDetailVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "请假id")
    private Integer id;

    @ApiModelProperty(value = "主题")
    private String theme;

    @ApiModelProperty(value = "请假开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startLeaveTime;

    @ApiModelProperty(value = "请假结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endLeaveTime;

    @ApiModelProperty(value = "请假类型:0：病假；1:事假；2：其他")
    private Integer leaveType;

    @ApiModelProperty(value = "请假原因")
    private String reason;

}
